--- import { getCollection, render } from 'astro:content'; import Base from '../../layouts/Base.astro'; import '../../styles/sub-pages.css'; export async function getStaticPaths() { const entries = await getCollection('tutorials'); return entries.map(entry => ({ params: { slug: entry.id }, props: { entry }, })); } const { entry } = Astro.props; const { Content } = await render(entry); ---
Tutorial

{entry.data.title}

{entry.data.tagline &&

{entry.data.tagline}

}